<head>
    <meta charset="utf-8">
    <title>Bootstrap面包屑导航</title>
    <meta name="description" content="Bootstrap breadcrumbs Example">
	<script src="js/rem.js"></script>
    <link href="../bootstrap/twitter-bootstrap-v2/docs/assets/css/bootstrap.css" rel="stylesheet">
    <style type="text/css">
        .container {
            padding: 20px 0;
			margin: 0 3rem;
        }
		.breadcrumb{
			display: flex;
		}
		.breadcrumb li{
			display: flex;
			align-items: center;
		}
		.breadcrumb li img{
			width: 0.2rem;
			height: 0.2rem;
			margin-right: 0.1rem;
		}
		.breadcrumb li a{
			font-size: 0.16rem;
			line-height: 0.16rem;
		}
		.breadcrumb li span{
			margin: 0 0.06rem;
		}
    </style>
</head>
<div class="container">
    <div class="row">
        <div class="span6">
            <ul class="breadcrumb">
                <li style="display: flex;align-items: center;">
					<img style="width: 0.18rem;height: 0.18rem;" src="static/homeIcon.png"/>
                    <a style="font-size: 0.16rem;" href="index.html?name=SY">首页</a> <span class="divider">></span>
                </li>
                <li>
                    <a href="#" style="color: red;" id="name">新闻动态</a>
                </li>
            </ul>
        </div>
    </div>
</div>
<script>
    var href = sessionStorage.getItem("href");
    console.log('面包屑',href)
    if(href){
        $('#name').attr('href',href);
    }else{
        $('#name').attr('href','#');
    }


	var name = window.location.href.split("&")[0].split("=")[1];
	if(name=='XXDT'){
		name = '新闻动态'
	}else if(name=='TZGG'){
		name = '通知公告'
	}else if(name=='TSZX'){
		name = '图书中心'
	}else if(name=='XSZQ'){
		name = '销售专区'
	}else if(name=='ZYXZ'){
		name = '资源下载'
	}else if(name=='SZFW'){
		name = '数字产品'
	}else if(name=='QYDJ'){
		name = '党建与文化'
	}else if(name=='XXGK'){
		name = '信息公开'
	}else if(name=='YSSQ'){
		name = '样书申请'
	}else if(name=='ZZTG'){
		name = '作者投稿'
	}else if(name=='XSTJ'){
        name = '新书推荐'
    }else if(name=='HYZX'){
        name = '会员中心'
    }else if(name=='GYWM'){
        name = '关于我们'
    }else if(name=='LXWM'){
        name = '联系我们'
    }
	$('#name').text(name)
</script>
